package com.client.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户论坛帖子表
 * </p>
 *
 * @author ckick
 * @since 2025-09-20 08:28:54
 */
@Getter
@Setter
@TableName("forums")
public class Forums {

    /**
     * 帖子唯一标识符
     */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    /**
     * 帖子标题
     */
    @TableField("title")
    private String title;

    /**
     * 封面图片URL
     */
    @TableField("cover_image")
    private String coverImage;

    /**
     * 帖子内容
     */
    @TableField("content")
    private String content;

    /**
     * 作者用户ID
     */
    @TableField("author_id")
    private Integer authorId;

    /**
     * 点赞总数
     */
    @TableField("likes")
    private Integer likes;

    /**
     * 收藏总数
     */
    @TableField("collects")
    private Integer collects;

    /**
     * 评论总数
     */
    @TableField("comments")
    private Integer comments;

    /**
     * 发布时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 帖子状态
     */
    @TableField("status")
    private String status;
    @TableField(exist = false)
    private Users user;
    @TableField(exist = false)
    private List<Comments> commentsList;
}
